import request from "@/api/request";

export function getList(params: SearchListParams) {
  return request({
    url: "",
    method: "get",
    params: params,
  });
}

export function getInfo(params: number) {
  return request({
    url: "",
    method: "get"
  });
}

export function saveInfo(params: DataInfo) {
  return request({
    url: "",
    method: "post",
    data: params,
  });
}


export function editInfo(params: DataInfo) {
  return request({
    url: "",
    method: "post",
    data: params,
  });
}

export function delteInfo(params: number | number[]) {
  return request({
    url: "",
    method: "get"
  });
}




export interface SearchListParams {
  pageNum: number;
  pageSize: number;
  templateName: string;
}

export interface DataInfo {
  id: number | null;
  templateName: string;
}

export interface TableData {
  id: number;
  templateName: string;
}